<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>ESModule使用</title>
  </head>
  <body>
    <!-- <script src="./js/myModule.js" type="module"></script> -->
    <!-- ESModule 的语法 在浏览器中默认要使用 需要加   type="module"-->
    <!-- <script type="module">
      import { lists } from './js/myModule.js'
      import myInfo from './js/myModule.js'
      console.log(lists)
      console.log(myInfo)
    </script>
    <script type="module">
      import { axios } from './node_modules/axios/lib/axios.js'
      console.log(axios)
    </script> -->
    <script src="./node_modules/axios/dist/axios.js"></script>
    <script>
      // console.log(axios)¡
      axios.get("https://api-vue-base.itheima.net/api/joke").then((res) => {
        // console.log(res)
        console.log(res.data);
      });
    </script>
  </body>
</html>
